package com.malamute.core.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;

/**
 * 日志拦截器
 * 
 * 
 */
public class LogInterceptor extends MethodFilterInterceptor {
	private String methodName;

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception {
		for (String method : this.getIncludeMethodsSet()) {
			System.out.println("doIntercept____" + method);
		}
		System.out.println(methodName);
		return invocation.invoke();
	}

}
